import { useCookies } from "@vueuse/integrations/useCookies";

const TOKEN_KEY = 'Authorization'
const cookie = useCookies()

//获取TOKEN
export function getToken(){
    return cookie.get(TOKEN_KEY)
}
//设置TOKEN
export function setToken(token){    
    return cookie.set(TOKEN_KEY, token)
}
//删除TOKEN
export function deleteToken(){
    cookie.remove(TOKEN_KEY)
    return cookie.remove(TOKEN_KEY)
}